#!/bin/bash

sids=($*)
dst=${sids[0]}

for sid in ${sids[*]}; do
    title="merge s$sid"
    ./util/notice.sh "$title" "begin $(date +%H:%M:%S)"
    ./merge/merge_game_db.sh $sid $dst
    if (($? != 0)); then
        ./util/error.sh "$title" "failed"
        exit 1
    fi
    ./util/info.sh "$title" "OK $(date +%H:%M:%S)"
    echo
done



